package com.motong.gongdan.vo.H5Vo.mission.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.motong.gongdan.entity.MobileCardConf;
import com.motong.gongdan.entity.User;
import com.motong.gongdan.vo.H5Vo.common.GroupCountVo;
import com.motong.gongdan.vo.H5Vo.common.ListTypeCountVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@ApiModel("h5任务列表返回值")
@EqualsAndHashCode(callSuper = true)
public class H5MissionListVo<T> extends ListTypeCountVo<T> {

    @ApiModelProperty("移动端小卡片字段数据")
    private List<MobileCardConf> columnHeaderData;

    @ApiModelProperty("当前登录人")
    private User currentUser;

    public H5MissionListVo(List<GroupCountVo> typeCountData, Page<T> listData, List<MobileCardConf> columnData, User currentUser) {
        super(typeCountData, listData);
        this.columnHeaderData = columnData;
        this.currentUser = currentUser;
    }

    public H5MissionListVo(List<GroupCountVo> typeCountData, Page<T> listData) {
        super(typeCountData, listData);
    }
}
